|
SET OBJECT EFFECT
This command will apply a previously loaded FX effect onto the specified object.
SET OBJECT EFFECT Object Number, Effect Number
Object Number
Integer
The object number
Effect Number
Integer
The effect number
This command does not return a value.
Using this command instead of SET EFFECT ON allows many objects to share a single FX system and increase the performance of your application.
sync on : sync rate 60
load image "spec.bmp",1
load object "sphere.x",4
position object 4,0,0,0
load effect "bubble.fx",1,1
if effect exist(1)=1
set object effect 4,1
set limb effect 4,0,1
endif
x#=640-480 : set camera view x#/2,0,640-(x#/2),480
set camera aspect 1.0
rem Main loop
do
inc side#,4
set point light 0,cos(side#)*200,125,-300
center text 320,20,"CRAZY COMBINATION OF NEW U5 COMMANDS"
sync
loop
ghost particles off 1
delete effect 1
end
BASIC3D Commands Menu
Index
|